#ifndef _BMP180_H_
#define _BMP180_H_

#define OSS 0

//从机地址   I2C1总线上 BMP180的地址
#define BMP180SLAVE_ADDRESS  	0xEE



// -----函数定义
void Single_WriteI2C( unsigned char DeviceAddr, unsigned reg_addr, unsigned char reg_data);
unsigned char Single_ReadI2C(unsigned char DeviceAddr, unsigned char REG_Address);
short Multiple_read(unsigned char DeviceAddr, unsigned char ST_Address);
void InitBMP180(void);
long BMP180ReadTemp(unsigned char DeviceAddr);
long BMP180ReadPressure(unsigned char DeviceAddr);
void BMP180Convert(long *ptr);

#endif
